package com.lewis.module.m2.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author Lewis - 398529803@qq.com
 * @date 2021年11月30日, 030 - 17:05:30
 */
@Component
public class DemoTask {

	@Scheduled(cron = "0/5 * * * * ?")
	public void task1() {
//		Objects.requireNonNull(BotUtils.bot.getGroup(711609020)).sendMessage("测试task1");
//		Objects.requireNonNull(BotUtils.bot.getFriend(398529803)).sendMessage("测试task1");
	}
}
